package Level01_one;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Object> arrayList = new ArrayList<>();
        String arr[] = {"abc", "bad", "abc", "aab", "bad", "cef", "jhi"};
        for (String s : arr) {
            if (!arrayList.contains(s)) {
                arrayList.add(s);
            }
        }
        System.out.println(arrayList);
    }
}
